package com.yunxi.controller.hub2pms;

import com.yunxi.baseDataToHub.pojo.iam.IamOrg;
import com.yunxi.core.web.ApiResult;
import com.yunxi.core.web.ResponseUtil;
import com.yunxi.hubToBaseData.service.Iam2BaseDataDubboService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 客户信息 前端控制器
 * </p>
 *
 * @author
 * @since 2019-05-09
 */
@RestController
@RequestMapping("/admin/iam2pms")
@Api(tags = "pms:iam2pms", description = "客户信息接口")
public class Iam2PmsController {
   private static final Logger logger = LoggerFactory.getLogger(Iam2PmsController.class);

   @Autowired
   Iam2BaseDataDubboService iam2BaseDataDubboService;


   @GetMapping("/syncOrg")
   @ApiOperation(value = "查询分页")
   public ApiResult page() throws Exception {
      IamOrg org = new IamOrg();
      org.setOId("11111");
      org.setName("测试");
      List list = new ArrayList();
      list.add(org);
      iam2BaseDataDubboService.syncOrg(list);
      return ResponseUtil.ok();
   }
}
